
// 添加计算属性来格式化发布时间
export const formattedPublishTime = (publishTime) => {
    if(publishTime == null) return '';
    const date = new Date(publishTime);
    return date.toLocaleString('zh-CN', {
        year: 'numeric',
        month: '2-digit',
        day: '2-digit',
        hour: '2-digit',
        minute: '2-digit',
        second: '2-digit',
        hour12: false
    });
};
